import request from '@/utils/request'

// get 获得全站通知列表数据
export function getNotificationList(params) {
  return request({
    url: '/ops/notification/list',
    method: 'get',
    params
  })
}

// post 新增全站通知列表数据
export function addNotification(data) {
  return request({
    url: '/ops/notification/add',
    method: 'post',
    data
  })
}

// post 修改全站通知列表数据
export function updateNotification(data) {
  return request({
    url: '/ops/notification/revise',
    method: 'post',
    data
  })
}

// get 删除全站通知列表数据
export function deleteNotification(params) {
  return request({
    url: '/ops/notification/delete',
    method: 'get',
    params: { id: params }
  })
}
